import 'package:json_annotation/json_annotation.dart';

part 'hot_tag.g.dart';

@JsonSerializable()
class HotTag extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'page_url')
  String pageUrl;

  @JsonKey(name: 'page_type')
  String pageType;

  @JsonKey(name: 'params')
  String params;

  HotTag(
    this.id,
    this.name,
    this.pageUrl,
    this.pageType,
    this.params,
  );

  factory HotTag.fromJson(Map<String, dynamic> srcJson) =>
      _$HotTagFromJson(srcJson);
}
